package com.ys.web.sys.redisMessage.model;

import com.ys.utils.datasource.DataSourceBy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RedisMessageService {
    @Autowired
    private RedisMessageMapper redisMessageMapper;

    @DataSourceBy("ys_im")
    public void create(SysRedisMessage sysRedisMessage){redisMessageMapper.create(sysRedisMessage);}

    @DataSourceBy("ys_im")
    public int handle(int handler, Long id){
        return redisMessageMapper.handle(handler, id);
    }

    @DataSourceBy("ys_im")
    public int handleErr(Long id, String errMsg){
        return redisMessageMapper.handleErr(id,errMsg);
    }
}
